package com.itheima.demo1;

import java.util.Scanner;

public class exercise11 {
    public static void main(String[] args) {
        int price = 1000;

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入会员级别");
        int vip = sc.nextInt();

        if(vip == 1){
            System.out.println("打九折");
            System.out.println("实际支付的钱" + (price * 0.9));
        }
        else if(vip == 2){
            System.out.println("打八折");
            System.out.println("实际支付的钱" + (price * 0.8));
        }
        else if(vip == 3){
            System.out.println("打七折");
            System.out.println("实际支付的钱" + (price * 0.7));
        }
        else{
            System.out.println("不打折");
            System.out.println("实际支付的钱" + price);
        }
    }
}
